<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<jsp:include page="../../include/head.jsp"/>
<body>
<form class="form-horizontal" name="myForm" id="myForm" action="${BasePath}/order/reservation/save" method="post">
    <table id="edittable" style="width:100%;" align="center">
        <tr>
            <td colspan="4" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
                订单详情信息
                <input type="hidden" id="id" name="id" value="${order.id}"/>
            </td>
        </tr>
        <tr>
            <td class="column_name" width="15%">
                订单号
            </td>
            <td class="column_input" width="17%">
                ${order.orderNo}
            </td>
            <td class="column_name" width="17%">
                订单来源
            </td>
            <td class="column_input" width="17%">
                ${order.orderFrom}
            </td>
        </tr>
        <tr>
            <td class="column_name">
                购买人
            </td>
            <td class="column_input">
                ${order.buyUser}
            </td>
            <td class="column_name">
                有效期
            </td>
            <td class="column_input">
                <script>formatDate(${order.startDate});</script>
                至
                <script>formatDate(${order.endDate});</script>
            </td>
        </tr>
        <tr>
            <td class="column_name">
                邮寄地址
            </td>
            <td class="column_input">
                ${order.address}
            </td>
            <td class="column_name">
                邮政编码
            </td>
            <td class="column_input">
                ${order.postcode}
            </td>
        </tr>

        <tr>
            <td class="column_name">
                体检人姓名
            </td>
            <td class="column_input">
                ${order.endUser}
            </td>
            <td class="column_name">
                性别
            </td>
            <td class="column_input">
                ${order.sex}
            </td>
        </tr>
        <tr>
            <td class="column_name">
                年龄
            </td>
            <td class="column_input">
                ${order.age}
            </td>
            <td class="column_name">
                身份证号
            </td>
            <td class="column_input">
                ${order.idCard}
            </td>
        </tr>
        <tr>
            <td class="column_name">
                电话号码
            </td>
            <td class="column_input">
                ${order.phone}
            </td>
            <td class="column_name">
                手机
            </td>
            <td class="column_input">
                ${order.mobile}
            </td>
        </tr>
    </table>
    <table id="edittable" style="width:100%;" align="center">
        <tr>
            <td colspan="9" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
                预约记录
            </td>
        </tr>
        <tr bgcolor="#cccccc">
            <td>检查人信息</td>
            <td>预约时间</td>
            <td>预约商家</td>
            <td>分院</td>
            <td>套餐名称</td>
            <td>报告领取</td>
            <td>备注</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${reservationList}" var="res" >
        <tr>
            <td>
                ${res.endUser}&nbsp;/&nbsp;${res.sex}&nbsp;/&nbsp;${res.age}
            </td>
            <td>
                <script>formatDate(${res.reserveDate});</script>
            </td>
            <td>
                ${res.institutionName}
            </td>
            <td>
                    ${res.branch}
            </td>
            <td>
                    ${res.productName}
            </td>
            <td>
                    ${res.getReport}
            </td>
            <td>
                    ${res.comments}
            </td>
            <td>
                <%--New("0", "未发送"), // 新--%>
                <%--Sent("1", "已发送"), // 已发送--%>
                <%--ReSent("2", "再次发送"), // 重新发送--%>
                <%--Canceled("3", "已撤销"); // 已取消--%>
                    <c:choose>
                        <c:when test="${res.status==0}">
                            未发送
                        </c:when>
                        <c:when test="${res.status==1}">
                            已发送
                        </c:when>
                        <c:when test="${res.status==2}">
                            再次发送
                        </c:when>
                        <c:when test="${res.status==3}">
                            已撤销
                        </c:when>
                    </c:choose>
            </td>
            <td>
            </td>
        </tr>
        </c:forEach>
    </table>
    <table id="edittable" style="width:100%;" align="center">
        <tr>
            <td colspan="7" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
                邮寄记录
            </td>
        </tr>
        <tr bgcolor="#cccccc">
            <td>承运公司</td>
            <td>快递单号</td>
            <td>收件人</td>
            <td>电话</td>
            <td>地址</td>
            <td>快递日期</td>
        </tr>

    </table>
    <table id="edittable" style="width:100%;" align="center">
        <tr>
            <td colspan="7" class="column_head" style="font-size:14px;font-weight:bold;height:20px;">
                发票记录
            </td>
        </tr>
        <tr bgcolor="#cccccc">
            <td>发票抬头</td>
            <td>开票金额</td>
            <td>开票公司</td>
            <td>申请时间</td>
            <td>备注</td>
            <td>状态</td>
        </tr>

    </table>
</form>